import { defineStore } from 'pinia'
import { ref } from 'vue'
import dayJS from "dayjs";


const useAboutStore = defineStore('about', () => {
    const introList = ref([
        {
            date: "1",
            name: "公司简介，公司简介，公司简介，公司简介，公司简介，公司简介，公司简介，公司简介，",
            time: dayJS(new Date()).format("YYYY年MM月DD日"),
        }
    ])
    const servIntro = (name) => {
        introList.value[0].name = name
    }

    return {
        introList,
        servIntro,
    }

}, {
    persist: true
})

export default useAboutStore